#import "BWBackStitchSet.h"
#import "BWGridGeometry.h"
#import "BWBackStitchChangeList.h"

#import "BWThread.h"


@implementation BWBackStitchSet

- (id) initWithGeometry: (BWGridGeometry *) geoMetro
{
    if (self = [super init]) {
        geometry = [geoMetro retain];
    }

    return (self);

} // initWithGeometry


- (void) dealloc
{
    [geometry release];

    [super dealloc];

} // dealloc


- (void) applyChangeList: (BWBackStitchChangeList *) changeList
{
    int i;
    for (i = 0; i < [changeList count]; i++) {
        BWBackStitch *stitch;
        stitch = [changeList stitchAtIndex: i];
        [self addStitch: stitch];
    }

} // applyChangeList


- (void) encodeWithCoder: (NSCoder *) coder
{
    [super encodeWithCoder: coder];

} // encodeWithCoder


- (id) initWithCoder: (NSCoder *) coder
{
    if (self = [super initWithCoder: coder]) {
    }
    
    return (self);

} // initWithCoder

@end // BWBackStitchSet

